<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;

/**
 * 小程序
 * @package App\Models
 */
class Mini extends Model
{
    use HasFactory;

    protected $fillable = ['site_id', 'title', 'introduce', 'qr', 'appid', 'secret'];

    /**
     * 站点关联
     * @return BelongsTo
     */
    public function site()
    {
        return $this->belongsTo(Site::class);
    }
}
